<me:UIZABED x:Class="WPFExcelReport.UZA03"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"  
                     x:Name="TV"
                    FontSize="14" 
                    Loaded="Window_Loaded"
     >
    <me:UIZABED.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:Divideby100 x:Key="d100"/>
        <ucd:Divideby1000 x:Key="d1000"/>
    </me:UIZABED.Resources> 
    <StackPanel  >
        <WrapPanel>
            <Button  Grid.Column="1" Click="ManageCommand" Width="12" Height="20" HorizontalAlignment="Left" Visibility="{Binding IsMaster, Converter={StaticResource bv}}" >
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Extend.png" />
                </Button.Background>
            </Button>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition> 
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=付款方式:}}" Width="60"/>
                <TextBlock    Grid.Column="1" Text="{Binding ZABNR}" Foreground="Red"  
                          Width="50" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=说明:}}" Width="60"/>
                <ex:TXT72  Grid.Column="1" Text="{Binding ZABBEZ, Converter={StaticResource gb2312}}" 
                           IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"  MaxLength="40"   CharacterCasing="Upper"    MinWidth="200" />
                <TextBlock   Grid.Column="2" Text="{Binding Source={Localization:Translate Word=语言:}}" Width="60"/>
                <TextBlock Grid.Column="3" Text="{Binding LANG}"/> 
            </Grid>
        </WrapPanel>
        <WrapPanel>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=预付款%:}}" Width="60"/>
                <ex:NumericBox MaxLength="3"  Grid.Column="1" Text="{Binding ZABZBIN1,Converter={StaticResource d100}}"  
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                               Width="50" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>

                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=提货款%:}}"></TextBlock>
                <ex:NumericBox MaxLength="3"  Grid.Column="1" Text="{Binding ZABZBIN2,Converter={StaticResource d100}}"   
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                               Width="50" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>

                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=结单款%:}}" Width="60"/>
                <ex:NumericBox MaxLength="3"  Grid.Column="1" Text="{Binding ZABZBIN3,Converter={StaticResource d100}}"  
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                               Width="50" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>

                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=付款周期(天):}}" Width="80"/>
                <ex:NumericBox MaxLength="3"  Grid.Column="1" Text="{Binding ZABANZAHLG}"  
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                               Width="50" />
            </Grid>
            
        </WrapPanel>
        <WrapPanel>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=折扣%:}}" Width="60"/>
                <ex:NumericBox MaxLength="3"  Grid.Column="1" Text="{Binding ZABSKONP1,Converter={StaticResource d1000}}"  
                               DecimalPlaces="3"
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                               Width="80" />
             </Grid>
       
        </WrapPanel>
        <TXT:TXTITX Grid.Row="1"   Grid.Column="1"
                Name="cTxt" 
                    IsAuto="False"
                    TART="ZAB"
                    IsEdit="{Binding IsEdit,ElementName=TV}"
                    IsSaved="{Binding IsSaved,ElementName=TV}"
                    SIND="{Binding TXTISIND,ElementName=TV}"   
                        DEFTXT="{Binding DEFTXT,ElementName=TV}"  
                        Width="Auto" HorizontalAlignment="Left"/>
    </StackPanel>
</me:UIZABED>
